<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{font-size: 50px;color:red!important;}
        [name="box"]{color:yellow}
        .box{color:grey;}
        #box{color:pink;}

    </style>
</head>
<body>
    <div id="box" name="box" class="box" style="color:purple">
css样式优先级(!important>行内>id(类=属性)>标签>默认样式)
    </div>
</body>
</html>